-
Notifications
You must be signed in to change notification settings - Fork 604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[rush-lib] fix: update shrinkwrap when globalPackageExtensions has been changed #4913
Merged
iclanton
merged 4 commits into
microsoft:main
from
kenrick95:kenrick/fix-update-shrinkwrap-packageExtensions
Sep 12, 2024
Merged
[rush-lib] fix: update shrinkwrap when globalPackageExtensions has been changed #4913
iclanton
merged 4 commits into
microsoft:main
from
kenrick95:kenrick/fix-update-shrinkwrap-packageExtensions
Sep 12, 2024
+165
−1
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kenrick95
requested review from
iclanton,
octogonz,
apostolisms,
D4N14L and
dmichon-msft
as code owners
September 6, 2024 06:19
octogonz
reviewed
Sep 6, 2024
octogonz
reviewed
Sep 6, 2024
kenrick95
force-pushed
the
kenrick/fix-update-shrinkwrap-packageExtensions
branch
from
September 6, 2024 08:23
34fa0f7
to
46bc5ed
Compare
kenrick95
force-pushed
the
kenrick/fix-update-shrinkwrap-packageExtensions
branch
from
September 6, 2024 08:43
46bc5ed
to
f068060
Compare
D4N14L
reviewed
Sep 6, 2024
D4N14L
reviewed
Sep 9, 2024
D4N14L
reviewed
Sep 9, 2024
D4N14L
reviewed
Sep 9, 2024
libraries/rush-lib/src/logic/installManager/WorkspaceInstallManager.ts
Outdated
Show resolved
Hide resolved
D4N14L
approved these changes
Sep 9, 2024
dmichon-msft
reviewed
Sep 9, 2024
iclanton
reviewed
Sep 9, 2024
...tack/node-core-library/kenrick-fix-update-shrinkwrap-packageExtensions_2024-09-06-03-55.json
Outdated
Show resolved
Hide resolved
...hanges/@microsoft/rush/kenrick-fix-update-shrinkwrap-packageExtensions_2024-09-06-03-55.json
Outdated
Show resolved
Hide resolved
dmichon-msft
reviewed
Sep 9, 2024
libraries/rush-lib/src/logic/installManager/WorkspaceInstallManager.ts
Outdated
Show resolved
Hide resolved
kenrick95
force-pushed
the
kenrick/fix-update-shrinkwrap-packageExtensions
branch
2 times, most recently
from
September 10, 2024 03:28
ea7ad02
to
9d703b6
Compare
kenrick95
force-pushed
the
kenrick/fix-update-shrinkwrap-packageExtensions
branch
from
September 10, 2024 03:31
9d703b6
to
ed9dc1d
Compare
iclanton
approved these changes
Sep 12, 2024
kenrick95
deleted the
kenrick/fix-update-shrinkwrap-packageExtensions
branch
September 13, 2024 01:15
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #4901
Details
Add one more condition in WorkspaceInstallManager to compare the values of:
globalPackageExtensions
checksumpackageExtensionsChecksum
To calculate the checksum, I added the same implementation as per what's used in pnpm (ref). The code snippet used in pnpm is as such:
Since it depends on
sortKeys
(which pnpm uses [email protected] npm package), I asked in zulip if it's okay to add a new external dependency or not. The reply I received is to implement it innode-core-library
, so I added:Sort.sortKeys
with the tests imported and modified from [email protected].How it was tested
testrush update
in a Rush repoglobalPackageExtensions
testrush update
and expect that it updates the lockfileImpacted documentation
Updated the JSON schema of
node-core-library